<html>
<head><meta charset="utf-8"><title>wrong const evaluation of type_id inside generic context · t-compiler/const-eval · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/index.html">t-compiler/const-eval</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/wrong.20const.20evaluation.20of.20type_id.20inside.20generic.20context.html">wrong const evaluation of type_id inside generic context</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="202754381"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/wrong%20const%20evaluation%20of%20type_id%20inside%20generic%20context/near/202754381" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Gary Guo <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/wrong.20const.20evaluation.20of.20type_id.20inside.20generic.20context.html#202754381">(Jul 02 2020 at 23:11)</a>:</h4>
<p>It is discovered in <a href="https://github.com/rust-lang/rust/issues/73976">#73976</a> that we may const-evaluate TypeId incorrectly inside generic context. This might even be a soundness issue.</p>



<a name="202823880"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/wrong%20const%20evaluation%20of%20type_id%20inside%20generic%20context/near/202823880" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/wrong.20const.20evaluation.20of.20type_id.20inside.20generic.20context.html#202823880">(Jul 03 2020 at 17:20)</a>:</h4>
<p>lol</p>



<a name="202823936"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/wrong%20const%20evaluation%20of%20type_id%20inside%20generic%20context/near/202823936" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/wrong.20const.20evaluation.20of.20type_id.20inside.20generic.20context.html#202823936">(Jul 03 2020 at 17:21)</a>:</h4>
<p>oh <span class="user-mention" data-user-id="124288">@oli</span> already said what I was thinking</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>